//
//  NSDate+SR.h
//  SportRing
//
//  Created by mykoma on 14-6-16.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (Ex)

- (BOOL)isSameDay:(NSDate *)date;

- (NSString *)formattedBy_yyyyMM;

- (NSString *)formattedBy_yyyyMMdd;

- (NSString *)formattedBy_yyyyMd_CHN;

- (NSString *)formattedBy_MMddhhmm;

- (NSString *)formattedBy_Mdhhmm_CHN;

- (NSString *)formattedBy_yyyyMMddhhmm;

- (NSString *)formattedBy_yyyyMMddhhmmss;

- (NSString *)formattedBy_hhmm;

- (NSString *)formattedBy_hhmmss;

- (NSString *)formattedBy_M_d;

- (NSString *)continuousTimeSinceNow;

- (NSInteger)weekday_CHN;

- (NSArray *)weekStartAndweekEndDate;

- (NSArray *)weekStartAndweekEndDate_CHN;

- (NSArray *)monthStartAndmonthEndDate;

- (NSInteger)daysAgo;

- (NSDate *)dateBySubtractingDays:(NSInteger)days;

- (BOOL)isToday;

- (BOOL)isTomorrow;

- (BOOL)isYesterday;

@end
